package imgsei.wcj.com.commonbusiness.utils;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

/**
 * gson工具类
 *
 * @ author LUCKY
 * @ create date 2018/11/11 13:55
 */
public class GsonUtils {

    private static String TAG = "GsonUtils";

    private static volatile Gson gson = null;

    //获取gson
    public static Gson getGson() {
        if (gson == null) {
            synchronized (GsonUtils.class) {
                gson = new GsonBuilder().create();
            }
        }
        return gson;

    }
}
